import request from '@/utils/request.ts'

// 查询所有员工列表
export const employeeListService = (params:any)=>{
    return  request.get('/employee/list',{params:params})
}

// 开关更改员工状态
export const updateEmployeeStatusService = (id:number)=>{
    return  request.put(`/employee/status/`+id)
}

// 根据id删除员工
export const deleteEmployeeByIdService = (id:number)=>{
    return request.delete(`/employee/`+id)
}

// 更新员工信息
export const updateEmployeeService = (data:any)=>{
    return request.put(`/employee/updateInfo`,data)
}

// 添加员工
export const addEmployeeService = (data:any)=>{
    return request.post(`/employee/add`,data)
}